home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / sharew / accs / prtodisk / prtodisk.etx < prev    next >
Encoding:
Text File  |  1997-12-31  |  9.4 KB  |  182 lines

  1. 066010303050000132002006006010000
  2. 11
  3. 2#1
  4. F0110000001
  5. 9[....◆....◆....◆....◆....◆....◆....◆....◆....◆....◆....◆....◆...]0110
  6. ÇPRINTTODISKaccessory
  7. Version1.0
  8.  
  9. UsersGuideAndDescriptionOfItsOperation
  10.  
  11. 1.WhatisPRTODISK.ACC?
  12.  
  13.      PRTODISK.ACCisashortaccessory,whichallowsyouto
  14. redirectprinting,practicallyfromallprograms,fromaprinter
  15. toadiskfile.Allotherfunctionsoftherunningprogramremain
  16. withoutanychange.Forexample,printercontrolcharactersare
  17. notchangedandthereforeispossibletousePRTODISKforany
  18. printer.
  19.  
  20.  
  21.      2.ForwhichpurposeisPRTODISKsuitable?
  22.  
  23.      Firstofallfortheownprintingtothefile.Thenitis
  24. veryeasytorealizeanytextorprintdocumentathomeandthe
  25. ownprintingisdonelaterelsewhere.Thismaybeadvantageous
  26. eitherincaseyouhavenoprinterorwhenyoudemandbetter
  27. qualityoftheprint(forexampleonalaserprinter,whichyou
  28. probablyhaven'tathome).
  29.      TheothercaseinwhichyoucantakeadvantageofPRTODISK
  30. issuchsituationwhenyouwanttodosomechangesintheready
  31. printfilelaterandwithoutnecessitytoprintthisdocument
  32. again.Youcansimplymodifytheprintfilebyatexteditorand
  33. thenyoucanprintitdirectly.
  34.      PRTODISKisalsotheonlyhelpincaseyourprinterisnot
  35. compatiblewithsomeworldstandard.Insuchcaseitisnot
  36. possibletousetheprintmodeofprofessionalprogramsbecause
  37. youhavenotthecorrespondingprinterdriver.Butwhenyouhave
  38. PRTODISKyouarelucky.Youmayprintafiletoadiskusingsome
  39. standarddriverandforprintingonyournon-standardprinteryou
  40. canuseasimpleprintprogramwhichprovidesexchangeofcontrol
  41. charactersforcodeswhichusesyourprinter.
  42.  
  43.      3.HowtousePRTODISK?
  44.  
  45.      Itisveryeasy.Copytheaccessorytotherootdirectory
  46. ofyourbootdisk(thesamewaylikeeveryotheraccessory).
  47. Afterloadingtheprogramfromwhichyouwanttoprintand,of
  48. course,alsoyourdocument,requiredfontsetc.Justbefore
  49. printingyoucallPRTODISKfromtheaccessorymenuusingmouse
  50. andchooseOPEN.Afterenteringthefilenamestartprinting.
  51. ImmediatelyafterprintingisdoneyouagaincallPRTODISKand
  52. chooseCLOSE.Andsothewholeprintingtodiskisover.
  53.  
  54.      4.Well.MustItakeespeciallycareaboutanything?
  55.  
  56.      Yes,itisverygoodtofindoutifyouhaveenoughfree
  57. spaceonthefloppydisktowhichyouwanttoprint.Thegraphic
  58. modeoutputsareusuallyverybigandfull-pagegraphicoutputs
  59. forlaserprintershasuptoonemegabyteandyoumustcalculate
  60. Çwiththisfact.
  61.      Itisalsoveryimportanttoreducetominimumthetimein
  62. whichisactiveprintingtoafile(seebelow).Duringthe
  63. printingtothefile(i.e.printfileisopened)isnotpermitted
  64. tostartanyprogramorexitit(theaccessorydetectssuchcase
  65. andRESETisonlypossiblewaytocontinue).
  66.      Payattentionthatduringprintingtoafileyourprinter
  67. mustbeswitched-off(orbetterdisconnected).Ifyoudon'twant
  68. todisconnectorswitch-offtheprinteritissuitabletoswitch
  69. ittotheOFF-LINEmode.
  70.      NextImustnoteoneimportantfeaturesofPRTODISK.The
  71. majorityofprogramsforSTcomputersdoesnotusethesystem
  72. serviceforprintingoutputbutcontrolsdirectlyappropriate
  73. integratedcircuitstoobtainfasterprinting.Thereforeitis
  74. notsimple"tocatch"allwhattheprogramssendtothe
  75. printer becauseincorrectaccessusedinsomeprogramsdoesnot
  76. allowit.ThemethodsusedinPRTODISKarefromthispointof
  77. viewalsoincorrectaccordingtoSToperatingsystem.Therefore
  78. theauthordoesnotguaranteethefaultlessfunctionofthe
  79. accessoryPRTODISKwithallvariousprogramsandprinterdrivers.
  80. Authorrecommendstotestallonadisktowhichyoucopyall
  81. necessarybeforestartingtousePRTODISK.Authorisnot
  82. responsibleforeventualdamagesmadethroughunsuitableuseof
  83. theaccessoryPRTODISK.
  84.  
  85.  
  86.      5.HowdoesPRTODISKoperate?
  87.  
  88.      ThispartisintendedformoreadvancedSTuserswhoalready
  89. knowsomethingaboutitsoperatingsystemTOS.Afterinstalling
  90. tothememory,inboottime,PRTODISKdoesnotdoanythingelse
  91. thanitiswaitingtoitsactivationfromtheaccessorymenu.It
  92. doesnotchangeanysystemvectors,interruptionetc.Theother
  93. situationcomesinthetimewhenprintingtothefileis
  94. activated(i.e.aftertheprintfileisopened).Inthistime
  95. PRTODISKis"hanged"ontheoperatingsystemtocatchallwhat
  96. issenttoaprinter.Thistimeisalittlebitdangerousforthe
  97. correctfunctionofthecomputerincasethattherunningprogram
  98. hasaveryincorrectbehaviorbecausethesystemvectorsare
  99. overwritten.Thereforeyoushouldtrytominimizethisdangerous
  100. time.Thementioned"hanging"tothesystemisrealizedinthe
  101. followingthreelevels:
  102.      1.Thesystemlevel.ThisisdonebyredirectingofGEMDOS
  103. andBIOSvectors.InthismodePRTODISKcatchallwhatissent
  104. toaprinterbyTOS.ThismethodiscleanüÇfromthepointofview
  105. ofaprogrammerbutitisnotoftenusefulbecausethemajority
  106. ofSTprogramsdoesnotusethismode(seeabove).
  107.      
  108.      2.Thehardwarelevel.Itprovidesprintingfromprograms
  109. whichcontroldirectlySThardware.ForPRTODISKauthorproposed
  110. severalmethodsforthedetectionofanirregularaccessto
  111. hardwareregistersbutnoneofthesemethodsisperfectandwell
  112. usefulinallcases.ThemethodusedinPRTODISKoperatesthe
  113. followingway:
  114. Ç     -ifsomeprogramattemptstoswitchtheprocessorto
  115. theSUPERVISORmodethedesiredswitchingisnotrealized
  116. andtheprocessorwillstayintheUSERmode.
  117.      -duringtheprogramaccesstothecomputerhardware
  118. theBUSERRORsignalwillbegenerated(processorisinUSER
  119. mode!)whichcausesthejumptoPRTODISK.Thereisprovided
  120. storingofimportantdataandthentheTRACEmodeis
  121. activatedandtheinstruction,whichisprovidingI/O
  122. operation,isemulatedintheSUPERVISORmode.Asthennext
  123. thestoringofthedatatotheprintfileisdone(ofcourse
  124. onlyinsuchcaseifthetracedinstructionhassomethingto
  125. dowiththeoutputtoaprinter).PRTODISKalsomusttake
  126. careaboutBUSYsignal.Theprogrammustthinkthatthe
  127. printerisREADYwhiletherealityisanother.
  128.      -PRTODISKmustalsotakecareaboutalltriesof
  129. executingtheotherprivilegedinstructions.Thenext
  130. problemtodealwithissupervisorstackbecauseprocessor
  131. isintheUSERmodeandnormallyusestheuserstack.
  132.      -FrompreviousinformationitisclearthatPRTODISK
  133. changetheBUSERROR,TRACEandPRIVILEGVIOLATIONvector.
  134.      
  135.      3.Interruptlevel.Itisclearthatallprivileg
  136. instructionsandallinstructionswithaccesstohardware
  137. registersareemulatedbyPRTODISK.Thereforethetimetakenfor
  138. printingismuchlonger.SoauthorofPRTODISKinventedthethird
  139. methodofprintingtofile.Thismethodiseffectiveandcorrect
  140. fromtheTOS'spointofview.Unfortunatelythismethodusesa
  141. littlehardwaresupplementwhichispluggedintotheCENTRONICS
  142. port.Withmentionedsupplementitispossibletogenerate
  143. interrupt(viaMFP)eachtimethebyteissenttotheCENTRONICS
  144. port.Theinterrupthandlerprovidessafestoringofthatbyte.
  145. Mentionedmethodissoftwarecleanandthereisnodangerouspart
  146. likeinmethodusedsoftwareemulation.Butthisisnotuniversal
  147. becausethereisonecriticalpoint-interrupt.Whenprinter
  148. handlersetstheinterruptpriorityleveltoseven(whatsome
  149. programsdo)thentheincominginterruptcannotbeexecutedand
  150. PRTODISK,usingthismethod,isnotabletoprintanythingtoa
  151. file.
  152.      Howeveritispossibletosaythatatleastoneofthe
  153. mentionedmethodsisusableforeachprogram.
  154.      Authorknowsthatusedprincipleisnotquitecleanhowever
  155. itisonlypossibleprinciple.SuchsmallexcuseisthatPRTODISK
  156. putsbackallchangedvectorsandregistersinorderasifitwas
  157. noteverincomputer.
  158.  
  159.  
  160.      6.Isthereanypossibilityofconsultingmyproblems?
  161.  
  162.      Yes,itis.AuthorofPRTODISKisreadytohelptoall
  163. PRTODISKusers.Thereisnotsuchproblemthatcannotbesolved.
  164. Itisclearthatregisteredusershaverighttoobtainfree
  165. higherandhopefullybetterversions.Bythewayauthorsoon
  166. planstoreleasenewerversionofPRTODISKwithintegrated
  167. packer,whichsavesyourdiskspace,alongwithshortprinting
  168. ÇprogramsforSTandIBM PC.Thisprintingprogramtakespacked
  169. filefromPRTODISKandprintsittoaprinter.
  170.  
  171. Anyquestiontoauthoraddressto:
  172. GeorgeLAMAC
  173. FIDONET2:420/14.0
  174. phone++42-2-842424
  175. address:JiriLamac
  176. Predborska8
  177. 18200Prague8
  178. Czechoslovakia
  179.  
  180. Onthesameaddressthementionedhardwaresupplementis
  181. available.
  182.